/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package action;

import java.util.Calendar;
import org.freixas.jcalendar.DateEvent;
import org.freixas.jcalendar.DateListener;

/**
 *
 * @author Dhawal
 */
public class MyDateListener implements DateListener {
    public static Calendar c;

    @Override
    public void dateChanged(
            DateEvent e) {
         c = e.getSelectedDate();
        if (c != null) {
            System.out.println(c.getTime());
        } else {
            System.out.println("No time selected.");
        }
    }

    public static Calendar getC() {
        return c;
    }

    public static void setC(Calendar c) {
        MyDateListener.c = c;
    }
    
    
}
